<?php
/**
 * Created by PhpStorm.
 * Author: 黑瞎子
 * Date: 2018/3/19
 * Time: 16:09
 */

namespace app\api\controller;


use think\Controller;
use app\api\service\Token as TokenService;

class BaseCotroller extends Controller
{
    //调用初级权限验证
    protected function checkPrimaryScope(){
        TokenService::needPrimaryScope();
    }

    //调用仅限用户权限验证
    protected function checkExclusiveScope(){
        TokenService::needExclusiveScope();
    }
}